package mygang.security;

import org.springframework.beans.BeansException;
import org.springframework.context.ApplicationContext;
import org.springframework.context.ApplicationContextAware;

/**
 *
 * @author Volodymyr Lavrynovych <volodya.lavrynovych@gmail.com>
 * date: 10/09/2012
 */
public class ApplicationContextProvider implements ApplicationContextAware{
    private static ApplicationContext ctx = null;
    
    public static ApplicationContext getApplicationContext() {
        return ctx;
    }
    
    public void setApplicationContext(ApplicationContext ctx) throws BeansException {
        ApplicationContextProvider.ctx = ctx;
    }
}
